import request from '@/utils/request';

//查询记录
export const queryList = (params) => {
    return request({
        url: '/edu/videoRecord/getRecordsByCondition/' + params.current + '/' + params.limit,
        method: 'post',
        data: params
    })
}

//删除记录
export const removeRecord = (id) => {
    return request({
        url: '/edu/videoRecord/deleteRecords/' + id,
        method: 'delete',
    })
}

//修改记录
export const updateRecord = (form) => {
    return request({
        url: '/edu/videoRecord/updateRecord',
        method: 'post',
        data: form
    })
}

//新增记录
export const addRecord = (form) => {
    return request({
        url: '/edu/videoRecord/addVideoRecord',
        method: 'post',
        data: form
    })
}